/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package general;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author jzajaczek
 */
@ManagedBean
@RequestScoped
public class Bolts {
    private double dr;
    private double Ab;
    
    private double mat;

    /**
     * Creates a new instance of Bolts
     */
    public Bolts() {
    }

    /**
     * @return the dr
     */
    public double getDr() {
        return dr;
    }

    /**
     * @param dr the dr to set
     */
    public void setDr(double dr) {
        this.dr = dr;
    }

    /**
     * @return the Ab
     */
    public double getAb() {
        return 0.25 * Math.PI * this.dr * this.dr;
    }
}
